
<h1>RISM Lab Incipit Search</h1>
<br>

<%= form_tag :action =>  "findincipit" do %>

<p>
<%= label :pefield, "P & E Code" %>
<%= text_field_tag :pefield, @pefield%>
<%= submit_tag "search" %>
<% end %>
</p>
<p> Results: <%=@nodes["response"]["numFound"] %></p>

<p><%#= @cc %></p>

<% @nodes["response"]["docs"].each do | node | %>
  <%= node["rismid"] %> <br>
  <%= node["composer"] %> <br>
  <%= node["title"] %> <br>
  <%= node["pe"] %> <br>
  <%= image_tag("http://dl.rism.info/incigfx/"+node["id"]+".jpg", :alt => "incipit", :width=>"50%", :height=>"50%", :onerror=>"this.style.display='none'") %>
  <br>
  <br>
  <br>

  <% end %>

